﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using K.EnterpriseLibary;
using K.Persistence.Interface;
namespace K.Persistence.MapperDao
{
    public class CartonDao : BaseMapperDao , ICartonDao
    {
        public void InsertCarton(Carton carton)
        {
            ExcuteInsert("InsertCarton", carton);
        }

        public int UpdateCarton(Carton carton)
        {
            return Convert.ToInt32(ExcuteUpdate("UpdateCarton", carton));
        }

        public Carton SelectCarton(Carton carton)
        {
            Carton SelectCarton = new Carton();
            SelectCarton = (ExcuteSelect("SelectCarton", carton) as Carton);
            return SelectCarton;
        }


    }
}
